package com.xawl.dao;

import com.xawl.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {

    // 获取总记录数
    Integer getTotal();

    int addMessage(Message message);

    int deleteMessage(@Param("id") int id);

    int deleteMessages(Long[] ids);

    int updateMessage(Message message);

    List<Message> queryAll();

    Message findMessageById(@Param("id")int id);
}
